using System;
using System.Web;
using System.Data;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using BusinessLogicLayer;
using EntityObjectLayer;


/// <summary>
/// Summary description for wsManagePupilInfo
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class wsManagePupilInfo : System.Web.Services.WebService
{
    BLManagePupilInfo mpi;
    public wsManagePupilInfo()
    {
        mpi= new BLManagePupilInfo();
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public int addNewPupil(BEPupil bepupil) 
    {
        return mpi.addNewPupil(bepupil);
    }

    [WebMethod]
    public int editPupilProfile(BEPupil bepupil)
    {
        return mpi.editPupilProfile(bepupil);
    }

    [WebMethod]
    public int chekPupilExist(BEPupil bepupil)
    {
        return mpi.chekPupilExist(bepupil);
    }

    [WebMethod]
    public DataSet SelectAllClass()
    {
        return mpi.SelectAllClass();
    }

    [WebMethod]
    public String loadLastPupilID() 
    {
        return mpi.loadLastPupilID();
    }

    [WebMethod]
    public DataSet searchPupilProfile(BEPupil bep)
    {
        return mpi.searchPupilProfile(bep);
    }

    [WebMethod]
    public DataSet loadPupilProfile(BEPupil bep)
    {
        return mpi.loadPupilProfile(bep);
    }

    [WebMethod]
    public int setStatus(string p, string status)
    {
        return mpi.setStatus(p,status);
    }

    [WebMethod]
    public int getPupilCount(string c)
    {
        return mpi.getPupilCount(c);
    }

    [WebMethod]
    public DataSet getClassByType(string c)
    {
        return mpi.getClassByType(c);
    }

    [WebMethod]
    public DataSet getPupilByStatus(string s)
    {
        return mpi.getPupilByStatus(s);
    }

    [WebMethod]
    public int switchClass(string p, string c)
    {
        return mpi.switchClass(p,c);
    }

    [WebMethod]
    public DataSet pr_tblPupil_LoginByPupilIDne(string id)
    {
        return mpi.pr_tblPupil_LoginByPupilIDne(id);
    }
}

